export const rules = {
  fileID: {
    required: true,
    message: '请选择方案',
    trigger: 'change',
  },
}

export interface updateForm {
  fileID: string
}

export function useInitForm(): { formData: Ref<updateForm>, initForm: () => void } {
  const getData = () => ({
    fileID: '',
  })
  const formData = ref<updateForm>(getData())

  const initForm = () => {
    formData.value = getData()
  }

  return { formData, initForm }
}
